package com.heima.article.controller;

import com.heima.article.entity.ApAuthor;
import com.heima.common.dto.ResponseResult;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.heima.article.service.IApAuthorService;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * APP文章作者信息表 前端控制器
 * </p>
 *
 * @author syl
 * @since 2022-06-26
 */
@RestController
@RequestMapping("/api/v1/author")
@Api(tags = "APP文章作者信息表接口")
@CrossOrigin
public class ApAuthorController{

    @Autowired
    private IApAuthorService apAuthorService;



    @PostMapping
    @ApiOperation(value = "saveApAuthor" ,notes = "保存自媒体用户")
    @ApiModelProperty(name ="apAuthor" ,dataType = "ApAuthor" ,required = true)
    public ResponseResult<ApAuthor> saveApAuthor(@RequestBody ApAuthor apAuthor){
        return apAuthorService.saveApAuthor(apAuthor);
    }

}
